error writing values new contents on registry - fixed